package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购货方
 *
 * @author flyme
 * @date 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_custom")
@TableAlias("custom")
@ApiModel(value = "BusCustom对象", description = "购货方")
public class BusCustom extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "customId", type = IdType.ASSIGN_ID)
    private Long customId;

    @ApiModelProperty(value = "客户名称")
    private String customName;

    @ApiModelProperty(value = "客户拼音名称")
    private String customNamePinYin;

    @ApiModelProperty(value = "客户编码")
    private String customCode;

    @ApiModelProperty(value = "联系人")
    private String linkMan;

    @ApiModelProperty(value = "联系电话")
    private String telephone;

    @ApiModelProperty(value = "所属省份")
    private String areaName;

    @ApiModelProperty(value = "业务区域")
    private String areaCode;


    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "账套")
    private Long companyId;

    @ApiModelProperty(value = "机构")
    private Long organizationId;


    @ApiModelProperty(value = "状态")
    private Integer customState;


    @ApiModelProperty(value = "允许未回款结算")
    private Integer allowJs;


    @ApiModelProperty(value = "结算类型(按流向结算)")
    private Boolean settleType;

    @ApiModelProperty(value = "质量证书有效期")
    private Date zlDate;

    @ApiModelProperty(value = "药品许可有效期")
    private Date ypDate;

    @ApiModelProperty(value = "授权有效期")
    private Date sqDate;

    @ApiModelProperty(value = "身份证有效期")
    private Date sfzDate;

    @ApiModelProperty(value = "质保协议有效期")
    private Date zbDate;

    @ApiModelProperty(value = "器械许可有效期")
    private Date qxDate;

    @ApiModelProperty(value = "年度公示期限")
    private Date ngDate;

    @ApiModelProperty(value = "执照有效期")
    private Date zzDate;

    @ApiModelProperty(value = "执照有效期")
    private String ckAddress;

    @ApiModelProperty(value = "收货人姓名")
    private String shUserName;

    @ApiModelProperty(value = "收货人电话")
    private String shTelephone;

    @Version
    private Integer version;

    @ApiModelProperty(value = "备注")
    private String remark;

}
